import { createRouter, createWebHashHistory } from 'vue-router'
import { createRouterGuard } from './guard'
import { routes } from './routes'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.VITE_BASE),
  routes,
})

// 创建路由守卫
createRouterGuard(router)

export default router
